archive-test: Handle umask of 022 or 002
authorColin Walters <walters@verbum.org>
Wed, 1 May 2013 22:43:01 +0000 (18:43 -0400)
committerColin Walters <walters@verbum.org>
Wed, 1 May 2013 22:43:01 +0000 (18:43 -0400)
Red Hat appears to default to 002, whereas Debian systems default
to 022.  Fun.

tests/archive-test.sh

index cd22b87a1a0322c723365575c52e71b1be31d948..cd0b299552583d15208020ce1b1e02167d8ae854 100755 (executable)
@@ -50,7 +50,7 @@ echo "ok uid0 commit"
 
 cd ${test_tmpdir}
 $OSTREE ls test2-uid0 /firstfile > uid0-ls-output.txt
-assert_file_has_content uid0-ls-output.txt "-00664 0 0      6 /firstfile" 
+assert_file_has_content uid0-ls-output.txt "-006[64]4 0 0      6 /firstfile" 
 echo "ok uid0 ls"
 
 $OSTREE checkout -U test2-uid0 checkout-user-test2-uid0